﻿using System;
using Microsoft.EntityFrameworkCore;
using MyTinnyApi.model;

namespace MyTinnyApi
{
	public class AppDbContext : DbContext
	{
        public DbSet<Folder> Folder { get; set; }
        public DbSet<Env> Env { get; set; }
        public DbSet<EnvDetail> EnvDetail { get; set; }
        public DbSet<Requests> Request { get; set; }
        public DbSet<RequestParam> RequestParam { get; set; }
        public DbSet<RequestHeader> RequestHeader { get; set; }
        public DbSet<RequestBody> RequestBody { get; set; }
        public DbSet<RequestBodyParam> RequestBodyParam { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlite("Data Source=/Users/zhangming/Projects/MyTinnyApi/api.db3");
        }
    }
}

